//
//  XPContactOutlineView.m
//  QQ
//
//  Created by nhope on 2017/5/2.
//  Copyright © 2017年 xiaopin. All rights reserved.
//

#import "XPContactOutlineView.h"

@implementation XPContactOutlineView

- (NSView *)makeViewWithIdentifier:(NSString *)identifier owner:(id)owner {
    NSView *view = [super makeViewWithIdentifier:identifier owner:owner];
    if ([identifier isEqualToString:NSOutlineViewDisclosureButtonKey]) {
        // 自定义箭头图标
        NSButton *button = (NSButton *)view;
        [button setImage:[NSImage imageNamed:@"icon-arrow-right"]];
        [button setAlternateImage:[NSImage imageNamed:@"icon-arrow-down"]];
        [button setBordered:NO];
        return button;
    }
    return view;
}

@end
